﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompanyManagementDLL.MetaData
{
    public class UserMetaData
    {
        public int UserID { get; set; }

        [Required]
        public string UserName { get; set; }

        [Required]
        [StringLength(15, MinimumLength = 6)]
        public string Password { get; set; }

        [Required]
        [Compare("Password")]
        public string ConfirmPassword { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        public string EmailID { get; set; }

        public string FullName { get; set; }
        public string PhoneNumber { get; set; }

        [Required]
        public Nullable<int> RoleID { get; set; }
        public Nullable<System.DateTime> CreatedDate { get; set; }
        public Nullable<System.DateTime> LastLoginDate { get; set; }
        public bool IsActive { get; set; }
        public string RoleName { get; set; }
        public string Address { get; set; }

        public string ProfilePicPath { get; set; }

        public int TID { get; set; }
    }
}
